package action;

import com.opensymphony.xwork2.ActionSupport;

import exception.DummyException;

public class Login extends ActionSupport{

	private String userName;
	private String password;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String execute() throws DummyException {
		if (getUserName() != null && getUserName().length() > 0) {
			return "ying";
		} else {
			return "yang";
		}
	}
	

}
